x86/vioapic: allow the vIO APIC to have a variable number of pins
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 4 Apr 2017 10:46:47 +0000 (12:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Apr 2017 10:46:47 +0000 (12:46 +0200)
commitcde048340afa125514f77368f62fbea9805a68f9
tree2485d8c33f0a58b8f970a6570ee4cdd6a79f3a57
parent6cbc358a1416025d057fd1866b8e37d907cc0662
x86/vioapic: allow the vIO APIC to have a variable number of pins

Although it's still always set to VIOAPIC_NUM_PINS (48).

Add a new field to the hvm_ioapic struct to contain the number of pins (number
of IO redirection table entries) and turn the redirection table into a variable
sized array.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vioapic.c
xen/include/asm-x86/hvm/vioapic.h
xen/include/public/arch-x86/hvm/save.h